package com.diannuo.springboot.model;

import lombok.Getter;
import lombok.Setter;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * Created on 2019-11-04
 */
@Getter
@Setter
public class User implements java.io.Serializable{

    @Id
    @KeySql(useGeneratedKeys = true)
    private Integer id;

    private String username;

    private String password;

//    @JsonFormat
    private LocalDateTime createTime;

    private LocalDate today;

    private LocalDateTime timer;

}